﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NumLengthManager.aspx.cs"
    Inherits="LotteryVote.NumLengthManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div style="color: Red">
            <asp:Literal ID="ltl_message" runat="server"></asp:Literal></div>
        <fieldset>
            <legend>NumLength</legend>LenId:<asp:TextBox ID="txt_lenId" runat="server"></asp:TextBox>
            Length:<asp:TextBox ID="txt_len" runat="server"></asp:TextBox>
            Name:<asp:TextBox ID="txt_lenName" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="btn_AddNumLen" runat="server" Text="Add" OnClick="btn_AddNumLen_Click" />
            <asp:Button ID="btn_DelteNumLen" runat="server" Text="Delete" OnClick="btn_DelteNumLen_Click" />
            <asp:Button ID="btn_RemoveNumLen" runat="server" Text="Remove" OnClick="btn_RemoveNumLen_Click" />
            <asp:Button ID="btn_GetAllNumLength" runat="server" Text="GetAll" OnClick="btn_GetAllNumLength_Click" />
            <br />
            <asp:GridView ID="gv_numLength" runat="server" AutoGenerateColumns="true">
            </asp:GridView>
        </fieldset>
        <fieldset>
            <legend>CompanySupportNumLength</legend>CompanyType:<asp:DropDownList ID="ddl_companyType"
                runat="server">
            </asp:DropDownList>
            NumLength:<asp:DropDownList ID="ddl_numlen" runat="server">
            </asp:DropDownList>
            Count:<asp:TextBox ID="txt_count" runat="server"></asp:TextBox>
            <br />
            <asp:Button ID="btn_addSupport" runat="server" Text="Add" OnClick="btn_addSupport_Click" />
            <asp:Button ID="btn_updateSupport" runat="server" Text="Update" OnClick="btn_updateSupport_Click" />
            <asp:Button ID="btn_delSupport" runat="server" Text="Delete" OnClick="btn_delSupport_Click" />
            <asp:Button ID="btn_getSuport" runat="server" Text="GetSupport" OnClick="btn_getSuport_Click" />
            <asp:GridView ID="gv_supportNumlen" runat="server" AutoGenerateColumns="false">
                <Columns>
                    <asp:TemplateField HeaderText="Name">
                        <ItemTemplate>
                            <%#Eval("Length.LenName") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Length">
                        <ItemTemplate>
                            <%#Eval("Length.Length") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Count" DataField="Count" />
                </Columns>
            </asp:GridView>
        </fieldset>
        <asp:Button ID="btn_GetAll" runat="server" Text="GetAll" OnClick="btn_GetAll_Click" />
    </div>
    </form>
</body>
</html>
